projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
824f784
)
Fix previous patch to dired-mark-if
author
Lars Ingebrigtsen
<larsi@gnus.org>
Tue, 25 Jun 2019 23:15:06 +0000
(
01:15
+0200)
committer
Lars Ingebrigtsen
<larsi@gnus.org>
Tue, 25 Jun 2019 23:15:06 +0000
(
01:15
+0200)
* lisp/dired.el (dired-mark-if): Don't use looking-at to check for
characters.
lisp/dired.el
patch
|
blob
|
history
diff --git
a/lisp/dired.el
b/lisp/dired.el
index 5618b25f6f9bfb9df4bda3771e0f5db3b2306ab2..38ba3734a6135cc967ebe00ca997894b52649d84 100644
(file)
--- a/
lisp/dired.el
+++ b/
lisp/dired.el
@@
-559,7
+559,7
@@
Return value is the number of files marked, or nil if none were marked."
(goto-char (point-min))
(while (not (eobp))
(when ,predicate
- (unless (
looking-at-p (char-to-string dired-marker-char)
)
+ (unless (
= (following-char) dired-marker-char
)
(delete-char 1)
(insert dired-marker-char)
(setq count (1+ count))))